package com.xu.cloud.common.thread;

import com.xu.cloud.common.constant.SystemConstant;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * @author xuguan
 * @since 2023/11/10
 */
@ConfigurationProperties(prefix = "xu.cloud.thread")
@Data
public class ThreadPoolProperties {

    /**
     * 核心线程数
     */
    private int corePoolSize = SystemConstant.SYSTEM_THREAD_COUNT;

    /**
     * 最大线程数
     */
    private int maxPoolSize = 2 * SystemConstant.SYSTEM_THREAD_COUNT;

    /**
     * 阻塞队列线程数
     */
    private int queueCapacity = 9999;
}
